package com.dragon.pear.modules.trade.web.model.params.order;

import io.swagger.v3.oas.annotations.media.Schema;

/**
 * @author Chris Chan
 * Create on 2025-09-30 22:06
 * Use for: 付款 数据排序请求参数
 * Explain:
 * 所有字段取值规则：-1 降序，0 不排序，1 升序
 */
@Schema(description = "付款 排序参数")
public class TradeGoodsPayOrderParam {
    @Schema(description = "ID", example = "1")
    private int id;
    @Schema(description = "订单编号", example = "1")
    private int orderCode;
    @Schema(description = "实付价格", example = "1")
    private int price;
    @Schema(description = "支付时间", example = "1")
    private int time;
    @Schema(description = "支付渠道", example = "1")
    private int channel;

    // 无参构造方法
    public TradeGoodsPayOrderParam() {
    }

    // 全参数构造方法
    public TradeGoodsPayOrderParam(int id, int orderCode, int price, int time, int channel) {
        this.id = id;
        this.orderCode = orderCode;
        this.price = price;
        this.time = time;
        this.channel = channel;
    }

    // 全参数create生成器
    public static TradeGoodsPayOrderParam create(int id, int orderCode, int price, int time, int channel) {
        return new TradeGoodsPayOrderParam(id, orderCode, price, time, channel);
    }

    // 全参数of生成器
    public static TradeGoodsPayOrderParam of(int id, int orderCode, int price, int time, int channel) {
        return new TradeGoodsPayOrderParam(id, orderCode, price, time, channel);
    }
    // region Getter和Setter方法
    public int getId() {
        return id;
    }

    public TradeGoodsPayOrderParam setId(int id) {
        this.id = id;
        return this;
    }

    public int getOrderCode() {
        return orderCode;
    }

    public TradeGoodsPayOrderParam setOrderCode(int orderCode) {
        this.orderCode = orderCode;
        return this;
    }

    public int getPrice() {
        return price;
    }

    public TradeGoodsPayOrderParam setPrice(int price) {
        this.price = price;
        return this;
    }

    public int getTime() {
        return time;
    }

    public TradeGoodsPayOrderParam setTime(int time) {
        this.time = time;
        return this;
    }

    public int getChannel() {
        return channel;
    }

    public TradeGoodsPayOrderParam setChannel(int channel) {
        this.channel = channel;
        return this;
    }

    // endregion Getter和Setter方法
}
